const Mixin = {
  data() {
    return {
      //
    }
  },
  computed: {
    isEemployee: function() {
      return this.$store.state.appMe.isEemployee
    },
    partner: function() {
      return this.$store.state.appMe.partner
    }
  },

  async created() {
    this.$store.dispatch('appMe/getInfo')
  },

  methods: {
    async handleLogout() {
      console.log('xxx,handleLogout')
      await this.$store.dispatch('user/logout')
      this.$store.dispatch('appTabbar/select', 'home')
      this.$router.push(`app/login`)
      // this.$router.push(`/login?redirect=${this.$route.fullPath}`)
    }
  }
}

export default Mixin
